package chapter8;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/chapter8")
public class FileController {
    @RequestMapping("/download")
    public String Download(Model model) {
        return "chapter8_fileDownload";
    }
    /**
     * 模拟拦截器对请求放行
     */
    @RequestMapping("/upload")
    public String Upload(Model model) {
        return "chapter8_fileUpload";
    }
}
